package com.dzt.androidframework.network.mobapi.lottery;

import rx.Observable;

/**
 * Created by M02323 on 2017/12/6.
 */

public class LotteryManager {
	private LotteryService lotteryService;

	public LotteryManager() {
		lotteryService = LotteryRetrofit.getInstance().getServer();
	}

	public Observable<Lottery> queryLottery(String key, String name) {
		return lotteryService.queryLottery(key, name);
	}

	public Observable<LotteryType> queryLotteryList(String key) {
		return lotteryService.queryLotteryList(key);
	}
}
